import request from "@/utils/request"

export const AdminLogin = (params) => {
    return request({
        url:'/admin/login.php',
        method:'POST',
        data:params
    })
}

export const MsgAdd = (params) => {
    return request({
        url:'/msg/add.php',
        method:'POST',
        data:params  
    })
}

export const MsgGet = (page, pageSize) => {
    return request({
        url: `/msg/get.php?page=${page}&pageSize=${pageSize}`,
        method: 'GET'
    })
}

export const MsgDel = (params) => {
    return request({
        url: '/msg/del.php',
        method: 'POST',
        data: params
    })
}

